lcBlockAddLeader Home

Adds a new Leader object into a block.

 HANDLE lcBlockAddLeader (
   HANDLE hBlock,
   LPCWSTR szText,
   double Xt,
   double Yt,
   double LandDist,
   double Xa,
   double Ya,
   int Attach,
   int Align
 );

Parameters
hBlock
  Handle to a block.
szText
  Text string. It can contain formatting codes which allow to set different fonts, characters height and colors within one text object.
Xt Yt
  Center point of the text frame.
LandDist
  Length of landing line.
Xa Ya
  End point of the leader line (arrow position).
Attach
  Defines how leader line is attached to the text frame. Can be a combination of the following values:

Value Attachment
LC_LEADER_VERT If specified, then the line will be attached to top or bottom side, if not - left or right side.
LC_LEADER_CORNER If specified, then the line will be attached at corner, if not - at center of the text frame side.

Align
  For multiline text. An alignment inside of the text frame. Can be one of the following values:

Value Alignment
LC_LEADER_TLEFT To left side
LC_LEADER_TCENTER At center
LC_LEADER_TRIGHT To right side


Return Value

  Handle to created Leader object or NULL if the function fails.

See Also

  Dimension style